package com.ticket.sass.admin.config

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.context.annotation.Configuration


/**
 * @author 朱其鹏
 * @date 2024/6/5 10:25
 */
@Configuration
@ConfigurationProperties("app")
data class AppConfigurer(
    var wx: Wx = Wx()
) {
    /**
     * 微信配置
     */
    data class Wx(
        var miniapp: Miniapp = Miniapp(),
    ) {
        /**
         * 小程序配置
         */
        data class Miniapp(
            var subscribeMessage: SubscribeMessage = SubscribeMessage(),
        ) {

            /**
             * 消息订阅
             */
            data class SubscribeMessage(
                var tplIdTakeTicket: String = "",
                var tplIdIssueTicketSuccess: String = "",
                var tplIdFilmStart: String = "",
                var tplIdLaterPay: String = "",
                var tplIdOrderCommodityDispatch: String = "",
                var miniprogramState: String = "",
            )
        }
    }
}
